﻿@model WebApplication2.Models.SysUser
@{
    ViewBag.Title = "Details";
}


<dl>
    <dt>姓名</dt>
    <dd>@Html.DisplayFor(model => model.UserName)</dd>

    <dt>邮箱</dt>
    <dd>@Html.DisplayFor(model => model.Email)</dd>

    <dt></dt>
    <dd>
        <table>
            <tr>
                <th>RoleName</th>
                <th>RoleDesc</th>
            </tr>
            @foreach (var item in Model.SysUserRole)
            {
                <tr>
                    <td>
                        @Html.DisplayFor(a=>item.SysRole.RoleName)
                    </td>
                    <td>
                        @Html.DisplayFor(a => item.SysRole.RoleDesc)
                    </td>
                </tr>
            }
        </table>
    </dd>
</dl>

